package com.aizhixin.lab.project.template.repository;

import com.aizhixin.lab.project.template.entity.TaskWorkOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TaskWorkOrderRepository extends JpaRepository<TaskWorkOrder,String> {
    List<TaskWorkOrder> findByTaskIdAndDeleteFlagOrderByWorkOrderNo(String taskId,Integer deleteFlag);
    Integer countByTaskIdAndDeleteFlag(String taskId,Integer deleteFlag);
    List<TaskWorkOrder> findByTaskIdInAndDeleteFlag(List<String> taskIds,Integer deleteFlag);
    TaskWorkOrder findByWorkOrderNameLikeIgnoreCaseAndDeleteFlag(String workOrderName,Integer deleteFlag);
    TaskWorkOrder findByIdAndDeleteFlag(String id,Integer deleteFlag);
}
